package userenum

type userStatus int

const (
	Disable        userStatus = 0
	Enable         userStatus = 1
	RootDepartment userStatus = 1
)

func NewStatus(code int) userStatus {
	return userStatus(code)

}

var ListStatusMap = map[userStatus]string{
	Disable: "禁用",
	Enable:  "启用",
}

func (p userStatus) StringStatus() string {
	if v, ok := ListStatusMap[p]; ok {
		return v
	}
	return "空"
}
